// JavaScript Document

function Ctrl($scope,$browser){ 
			$scope.account_format = /^[a-zA-Z0-9]*$/;
			$scope.second=false;
			$scope.flostcenter=true;
			$scope.newverifycode = function(){ 
				$scope.random = (new Date()).getTime().toString();
				
			};
			function myalert(msg){
				$scope.alertCon=msg;
				$scope.showHid=true;
				deleteCookie('bpverror');
			};
			var bperror =  $browser.cookies()['bpverror'];
			if (bperror && bperror != "") {
				  switch(bperror){
					  case "0000": myalert("验证码填写错误，请重试");break;
					  default: myalert("网络异常"); break;
					  }
						
			};
			
  };